package com.love.marriage.userCommissionWithdrawalHistory.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.love.marriage.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * description:  用户提现回佣金额历史表类
 * author:       mybatisPlus
 * createDate: 2024-11-10 18:46:48
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_commission_withdrawal_history_t")
@Schema(description = "用户提现回佣金额历史表")
public class UserCommissionWithdrawalHistory extends BaseEntity<UserCommissionWithdrawalHistory>{

    @Schema(description = "用户ID，关联用户表", type = "Long", implementation = Long.class)
    @TableField("user_id")
    private Long userId;

    @Schema(description = "提现金额", type = "BigDecimal", implementation = BigDecimal.class)
    @TableField("withdrawal_amount")
    private BigDecimal withdrawalAmount;

    @Schema(description = "提现申请时间", type = "LocalDateTime", implementation = LocalDateTime.class)
    @TableField("withdrawal_date")
    private LocalDateTime withdrawalDate;

    @Schema(description = "提现状态: PENDING=待处理, COMPLETED=完成", type = "String", implementation = String.class)
    @TableField("`status`")
    private String status;

    @Schema(description = "备注或说明", type = "String", implementation = String.class)
    @TableField("notes")
    private String notes;

    @Schema(description = "商户订单号", type = "String", implementation = String.class)
    @TableField("partner_trade_no")
    private String partnerTradeNo;
}
